Dynomotion

Group: DynoMotion Message: 6212 From: chrismd500 Date: 12/3/2012
Subject: Relay output to control a laser on/off?
Is it possible to use the JP33 pin 1 and 2 (relay 0+ and 0-) to control a laser on/off? It's a small low-power laser (5V 1mA) used for alignment.
Group: DynoMotion Message: 6213 From: TK Date: 12/3/2012
Subject: Re: Relay output to control a laser on/off?
Hi Kristoffer,

That should work. The relay driver is a darlington driver which means it will have about 0.7V drop. So if you are using a 5V supply the load will only see about 4.3V. See:


Regards
TK

On Dec 3, 2012, at 4:13 PM, "chrismd500" <kristoffer.jensen@...> wrote:

 

Is it possible to use the JP33 pin 1 and 2 (relay 0+ and 0-) to control a laser on/off? It's a small low-power laser (5V 1mA) used for alignment.

Group: DynoMotion Message: 6215 From: chrismd500 Date: 12/4/2012
Subject: Re: Relay output to control a laser on/off?
Thanks Tom.

The 4.3V is within the specified voltage range of the laser, so it should be fine.

Two additional quick questions:

1) Do I use SetBit(0) and ClearBit(0) (for Relay 0) to turn it on or off within the C oode?

2) This is probably a really dumb question, but I'm asking just to be sure. Are the 5V GND (external 5V powering the kstep, not from kflop) and 24V GND interchangeable? I.e. can I do this: Connect the 5V+ to Relay 0+, the laser+ to Relay 0-, and the laser- to 24V GND? (I'm asking because I don't have enough leads in the cable for a 5V GND).

--- In DynoMotion@yahoogroups.com, TK <tk@...> wrote:
>
> Hi Kristoffer,
>
> That should work. The relay driver is a darlington driver which means it will have about 0.7V drop. So if you are using a 5V supply the load will only see about 4.3V. See:
>
> http://dynomotion.com/Help/SchematicsKStep/RelayDrivers.png
>
> Regards
> TK
>
> On Dec 3, 2012, at 4:13 PM, "chrismd500" <kristoffer.jensen@...> wrote:
>
> > Is it possible to use the JP33 pin 1 and 2 (relay 0+ and 0-) to control a laser on/off? It's a small low-power laser (5V 1mA) used for alignment.
> >
> >
>
Group: DynoMotion Message: 6218 From: Tom Kerekes Date: 12/4/2012
Subject: Re: Relay output to control a laser on/off?

Hi Kristoffer,

#1 - yes.  You will also need to initialize IO0 as an output with SetBitDirection(0,1);

#2 - The 5V GND on for KSTEP is electrically connected to 24V (Motor Power) GND which may or may/not be electrically connected to KFLOP +5V GND depending on whether you are running KSTEP isolated or not.  See:

http://www.dynomotion.com/Help/BlockDiagramKStep.htm

Regards
TK

Group: DynoMotion Message: 6220 From: chrismd500 Date: 12/4/2012
Subject: Re: Relay output to control a laser on/off?
Awesome. Thanks.

--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
>
> Hi Kristoffer,
>
> #1 - yes.  You will also need to initialize IO0 as an output with SetBitDirection(0,1);
>
> #2 - The 5V GND on for KSTEP is electrically connected to 24V (Motor Power) GND which may or may/not be electrically connected to KFLOP +5V GND depending on whether you are running KSTEP isolated or not.  See:
>
> http://www.dynomotion.com/Help/BlockDiagramKStep.htm
>
> Regards
> TK
>
>
>
> ________________________________
> From: chrismd500 <kristoffer.jensen@...>
> To: DynoMotion@yahoogroups.com
> Sent: Tuesday, December 4, 2012 5:16 AM
> Subject: [DynoMotion] Re: Relay output to control a laser on/off?
>
>
>  
> Thanks Tom.
>
> The 4.3V is within the specified voltage range of the laser, so it should be fine.
>
> Two additional quick questions:
>
> 1) Do I use SetBit(0) and ClearBit(0) (for Relay 0) to turn it on or off within the C oode?
>
> 2) This is probably a really dumb question, but I'm asking just to be sure. Are the 5V GND (external 5V powering the kstep, not from kflop) and 24V GND interchangeable? I.e. can I do this: Connect the 5V+ to Relay 0+, the laser+ to Relay 0-, and the laser- to 24V GND? (I'm asking because I don't have enough leads in the cable for a 5V GND).
>
> --- In DynoMotion@yahoogroups.com, TK <tk@> wrote:
> >
> > Hi Kristoffer,
> >
> > That should work. The relay driver is a darlington driver which means it will have about 0.7V drop. So if you are using a 5V supply the load will only see about 4.3V. See:
> >
> > http://dynomotion.com/Help/SchematicsKStep/RelayDrivers.png
> >
> > Regards
> > TK
> >
> > On Dec 3, 2012, at 4:13 PM, "chrismd500" <kristoffer.jensen@> wrote:
> >
> > > Is it possible to use the JP33 pin 1 and 2 (relay 0+ and 0-) to control a laser on/off? It's a small low-power laser (5V 1mA) used for alignment.
> > >
> > >
> >
>